<template>
	<view class='wrapper'>
		<view class='box'></view>
		<view class="toar" @click="toAr">了解AR</view>
	</view>
</template>

<script>
	import api from '@/pages/utils/api.js';
	export default{
		data() {
			return {
				
			}
		},
		onLoad() {
			//this.toAr();
		},
		onShow() {
			//this.toAr();
		},
		methods:{
			toAr:function(){
				uni.showLoading({
				    title: '加载中...'
				});
				api.getSetting({
					
				}).then(info=>{
					if(info.code == 1){
						uni.hideLoading();
						uni.setStorageSync("webviewurl",info.data.arlinks);
						uni.navigateTo({
						    url: '/pages/webview/index'
						});
					}
				})
			},
		}
	}
</script>

<style>
	.box{
		height: 100%;
		background-position: center;
		background-size: auto;
		background-image: url(../../static/imgs/ar.jpg);
		background-repeat: repeat;
		width: 100%;
		position: absolute;
		overflow: hidden;
		margin: 0;
		
	}
	.toar{
		position: fixed;
		width: 100%;
		bottom: 0;
		text-align: center;
		color: #FFF;
		background: #007AFF;
		padding: 8px 0;
		font-size: 14px;
	}
</style>
